<?php
require('path.inc.php');
$user = new User($query);
$user->auth();
$page->title .= '左边导航';
$page->name = 'admin_left'; //页面名字,和文件名相同
$page->addCss('admin_style.css');
$page->addJs('jquery.js');
$user = new User($query);
$user->auth();
$u_id = $user->getAuthInfo('user_id');
$u_rights = $user->getRight($user->getAuthInfo('group_id'));

$navClass = new AdminNav($query);

$dataList = $navClass->getAll(' parent_id=0 and status=1','*',' order by list_order  ,list_root  ');
foreach($dataList as $key =>$item){
  $dataList[$key]['child'] = $navClass->getAll(' parent_id='.$item['id'].' and status=1','*',' order by  list_order asc');
}



$adminPower = new AdminPower($query);
$power = $adminPower->getInfo('1','power');




require_once($page->display($page->name));
?>